package Demo2;

public class Text2 {
    public static void main(String[] args) {
        Thread thread = new Thread(new Demo2('A',0,9));
        thread.start();
        new Thread(new Demo2('B',10,19)).start();
        char name = 'C';
        new Thread(new Runnable() {
            @Override
            public void run() {
                for(int i = 20;i < 29;i++) {
                    System.out.println(name + "运行中：" + i);
                }
            }
        }).start();
    }
}
